package com.sann.spring.service.impl;

import com.sann.spring.dao.IAccountDao;
import com.sann.spring.service.IAccountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import javax.annotation.Resource;

@Slf4j
public class AccountServiceImpl implements IAccountService {

    public AccountServiceImpl(IAccountDao dao){
        log.info("AccountServiceImpl 构造器被调用了");
        this.dao = dao;
    }

//    @Autowired
    IAccountDao dao;

    @Override
    public void saveAccount() {
        dao.saveAccount();
    }
}
